#ifndef C3POM_LOG_H
#define C3POM_LOG_H
#include"c3pom/service.h"
#include<string>
#include<fstream>
namespace c3pom
{
	class Log:public Service
	{
		private:
			std::ofstream f;
			std::string sinfo;
			std::string serror;
			std::string swarn;
		public:
			Log();
			void warn(std::string);
			void error(std::string);
			void info(std::string);
			//服务相关
			std::string name();
			std::string desc();
			void run();
			
			std::string getTimeofDay();
			static Log* getInstance();
	};
}
#endif
